package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 标签管理对象 st_tag
 * 
 * @author wmao
 * @date 2024-07-19
 */
public class StTag extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识符 */
    private String id;

    /** 标签名称 */
    @Excel(name = "标签名称")
    private String name;

    /** 标签类型 */
    @Excel(name = "标签类型")
    private String type;

    /** 所属对象 */
    @Excel(name = "所属对象")
    private String belongToObj;

    /** 状态（0未生效 1已上线 2已停用） */
    @Excel(name = "状态", readConverterExp = "0=未生效,1=已上线,2=已停用")
    private String status;

    /** 关联资源 */
    @Excel(name = "关联资源")
    private String relatedResourcesId;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setBelongToObj(String belongToObj) 
    {
        this.belongToObj = belongToObj;
    }

    public String getBelongToObj() 
    {
        return belongToObj;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setRelatedResourcesId(String relatedResourcesId) 
    {
        this.relatedResourcesId = relatedResourcesId;
    }

    public String getRelatedResourcesId() 
    {
        return relatedResourcesId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("belongToObj", getBelongToObj())
            .append("status", getStatus())
            .append("relatedResourcesId", getRelatedResourcesId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
